package cn.microven.mindmap.oprations;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

import java.io.IOException;

public class CreateStageOperation extends Application{

    public  CreateStageOperation(){}

    @Override
    public void start(Stage stage) throws Exception {
        Platform.runLater(() -> {
            try {
                VBox page = (VBox)FXMLLoader.load(this.getClass().getResource("/cn/microven/mindmap/view/FontChooseOperation.fxml"));
                Scene scene = new Scene(page,390.0D, 243.0D);
                stage.initStyle(StageStyle.UTILITY);
                stage.setResizable(false);
                stage.setTitle("字体和颜色");
                stage.setScene(scene);
                stage.show();
            } catch (IOException e) {
                e.printStackTrace();
            }
        });

    }

}
